<?php session_start(); ?>
<?php header("Content-type:image/jpeg"); ?>
<?php
    $c1=rand(0,9);
    $c2=rand(0,9);
    $rand=$c1."+".$c2;
    $_SESSION['code']=$c1+$c2;
    $im=imagecreatetruecolor(50,20);
    $bg=imagecolorallocate($im,255,255,255);
    $te=imagecolorallocate($im,0,0,0);
    imagestring($im,rand(5,6),rand(6,10),2,$rand,$bg);
    
    imagejpeg($im);
?>
<?php

/**
 * @author phpadmin
 * @copyright 2011
 */

//echo $_SERVER['HTTP_USER_AGENT'];

?>